/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.amu.wmi.kino.visualjavafx.javafxcodeparsers.api;

import pl.edu.amu.wmi.kino.visualjavafx.javafxcodeparsers.main.MainParser;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.Application;

/**
 *This class is an api used to generate model from the code
 * @author Admin
 */
public class JavaFxCodeParser {
    /**
     * This method returns model extracted from given javafx code
     * (for now just a stub - returns model from ModelProvider)
     * @param code
     * @return - Application class (the root of the model)
     */
    public static Application parseCode(String code){
      //TODO : Grzegorz : This is just a stub!!
        return MainParser.parseAll(code);

    }
}
